package com.example.mvvmdemo.viewmodel;

import androidx.lifecycle.MutableLiveData;
import com.example.common.base.BaseViewModel;
import com.example.common.utils.LocaleManager;
import com.example.common.utils.LogUtil;

public class ProfileViewModel extends BaseViewModel {
    
    public MutableLiveData<String> userName = new MutableLiveData<>();
    public MutableLiveData<String> userEmail = new MutableLiveData<>();
    public MutableLiveData<String> currentLanguage = new MutableLiveData<>();
    
    public ProfileViewModel() {
        super();
        initUserData();
    }
    
    private void initUserData() {
        // 模拟用户数据
        userName.setValue("John Doe");
        userEmail.setValue("john@example.com");
        
        LogUtil.d("ProfileViewModel", "User data initialized");
    }
    
    public void updateCurrentLanguage(String language) {
        currentLanguage.setValue(language);
        LogUtil.d("ProfileViewModel", "Current language updated: " + language);
    }
}